#include <iostream>
using namespace std;

#include "dungeon.h"

int main(){
	int state;
	dungeon d1;
	d1.setup();
	

	/*cout << "  ________                                           _________                      .__    " << endl;
	cout << "  \______ \  __ __  ____    ____   ____  ____   ____ \_   ___ \____________ __  _  _|  |   " << endl;
	cout << "   |    |  \|  |  \/    \  / ___\_/ __ \/  _ \ /    \/    \  \/\_  __ \__  \\ \/ \/ /  |   " << endl;
	cout << "   |    `   \  |  /   |  \/ /_/  >  ___(  <_> )   |  \     \____|  | \// __ \\     /|  |__ " << endl;
	cout << "  /_______  /____/|___|  /\___  / \___  >____/|___|  /\______  /|__|  (____  /\/\_/ |____/ " << endl;
	cout << "          \/           \//_____/      \/           \/        \/            \/              " << endl;
	cout << "===========================================================================================" << endl << endl;*/

	while (1){
		
		d1.draw();
		d1.play();
		state = d1.getState();

		if (state == 1 || state == 2){
			break;
		}
	}
	

	system("pause");
	return 0;
}